# This is the configuring for logging displayed in the Application Server
log4j.rootCategory=ERROR, stdout,logfile

#stdout configure
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern= %d %p [%c] - <%m>%n

#logfile configure
log4j.appender.logfile=org.apache.log4j.DailyRollingFileAppender
log4j.appender.logfile.File=${system.root}/logs/application.log
log4j.appender.logfile.layout=org.apache.log4j.PatternLayout
log4j.appender.logfile.layout.ConversionPattern= %d %p [%c] - <%m>%n

# Control logging for other open source packages
# Changing the log level to DEBUG when debug
log4j.logger.org.springframework=ERROR
# Changing the log level to DEBUG will display SQL Hibernate generated
log4j.logger.org.hibernate=WARN
log4j.logger.org.hibernate.SQL=ERROR
log4j.logger.org.hibernate.cache=ERROR
log4j.logger.net.sf.ehcache=ERROR
log4j.logger.org.apache.commons.validator.ValidatorResources=ERROR
log4j.logger.java.sql.PreparedStatement=ERROR
log4j.logger.org.apache.catalina=ERROR

# Other Independency Log Files
# log4j.logger.searchLog=INFO, searchLog
# log4j.appender.searchLog=org.apache.log4j.DailyRollingFileAppender
# log4j.appender.searchLog.File=E:/logs/searchLog.log
# log4j.appender.searchLog.layout=org.apache.log4j.PatternLayout
# log4j.appender.searchLog.layout.ConversionPattern=%d <%m>%n

# Item Log Files
log4j.logger.com.ambow.trainingengine.itembank.service.ParseItemService=INFO
log4j.logger.com.ambow.trainingengine.itembank.util.ParseItem=INFO
log4j.logger.com.ambow.trainingengine.itembank.util.ParseItemFile=INFO
# log4j.logger.com.ambow.trainingengine.wordbank.util.ParseWordFile=INFO

# Score Log
log4j.logger.com.ambow.trainingengine.exam.score.ScoreUtil=INFO